# sum=0
# for i in range(1,10):
#     sum+=i
# print(sum)

# def sumNum(b,e):
#     sum=0
#     for i in range(b,e+1):
#         sum+=i
#     print(sum)
#
# sum=sumNum(10,100)


# 判断是否是偶数

# def isOdd(num):
#     if(num%2==0):
#         return True
#     else:
#         return False
#
# re=isOdd(20)
# print(re)

# def defn(num):
#     if(num==1):
#         return 1
#     return num*defn(num-1)
#
# result=defn(3)
# print(result)


# 指定默认值
def add(x,y,debug=False):
    if debug:
        print(f'调试信息：x={x}，y={y}')
    return x+y
print(add(1,2))